package com.yipao.db.dao.group;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoGroupon;
import com.yipao.db.domain.YipaoGrouponExample;

public interface GrouponMapper {

    long countByExample(YipaoGrouponExample example);


    int deleteByExample(YipaoGrouponExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoGroupon record);


    int insertSelective(YipaoGroupon record);


    YipaoGroupon selectOneByExample(YipaoGrouponExample example);


    YipaoGroupon selectOneByExampleSelective(@Param("example") YipaoGrouponExample example, @Param("selective") YipaoGroupon.Column ... selective);


    List<YipaoGroupon> selectByExampleSelective(@Param("example") YipaoGrouponExample example, @Param("selective") YipaoGroupon.Column ... selective);


    List<YipaoGroupon> selectByExample(YipaoGrouponExample example);


    YipaoGroupon selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoGroupon.Column ... selective);


    YipaoGroupon selectByPrimaryKey(Integer id);


    YipaoGroupon selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoGroupon record, @Param("example") YipaoGrouponExample example);


    int updateByExample(@Param("record") YipaoGroupon record, @Param("example") YipaoGrouponExample example);


    int updateByPrimaryKeySelective(YipaoGroupon record);


    int updateByPrimaryKey(YipaoGroupon record);


    int logicalDeleteByExample(@Param("example") YipaoGrouponExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
